.loginContainer {
  height: calc(100vh - 36px);
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.goBack {
  position: absolute;
  left: 2px;
  top: 2px;
}

.content {
  background-color: #fff;
  width: 700px;
  height: 400px;
  border-radius: 5px;
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1);
  position: relative;
}

.formBox {
  position: absolute;
  top: -10%;
  left: 4%;
  background-color: #d3b7d8;
  width: 320px;
  height: 480px;
  border-radius: 5px;
  box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  transition: 0.5s ease-in-out;
  backface-visibility: hidden;

  :global(.ant-form-item) {
    width: 200px;
    margin-bottom: 15px;
  }
  input {
    border-bottom: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 0;
    &::placeholder {
      color: #fff;
    }
    &:focus {
      color: #a262ad;
      border-bottom: 1px solid #a262ad80 !important;
      transition: 0.5s;
    }
  }

  :global(.ant-input-affix-wrapper) {
    padding: 0;
    input {
      padding: 4px 0 4px 11px;
    }
  }

  :global(.ant-btn):not(.backLogin):not(.forgetBtn) {
    width: 70%;
    margin-top: 10px;
    background-color: #f6f6f6;
    outline: none;
    border-radius: 8px;
    padding: 13px;
    color: #a262ad;
    letter-spacing: 2px;
    border: none;

    &[disabled] {
      background-color: #d9d9d9;
      color: rgba(0, 0, 0, 0.25);
    }

    &:not([disabled]):hover {
      background-color: #a262ad80 !important;
      color: #f6f6f6 !important;
      transition: background-color 0.5s ease;
      border: 1px solid #f6f6f6 !important;
    }
    // 按下去的效果
    &:not([disabled]):active {
      background-color: #a262ad !important;
    }
  }
}

.formEnd {
  transform: rotateY(180deg);
}

.registerBox,
.loginBox {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;

  h1 {
    text-align: center;
    margin-bottom: 25px;
    text-transform: uppercase;
  }
}

.rememberLine {
  width: 200px;
  display: flex;
  align-items: center;
  justify-content: space-between;

  .forgetBtn {
    color: #a262ad !important;
    padding: 0;
    &:hover {
      color: #4096ff !important;
    }
  }
}

.backLogin {
  position: absolute;
  bottom: 10px;
  color: #a262ad !important;
  &:hover {
    color: #4096ff !important;
  }
}

.conBox {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  &.conLeft {
    left: 0;
  }
  &.conRight {
    right: 0;
  }

  h2 {
    color: #8e9aaf;
    font-size: 25px;
    font-weight: bold;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 4px;
    span {
      color: #d3b7d8;
    }
  }

  img {
    width: 280px !important;
    opacity: 0.8;
    margin: 40px 0;
  }
  p {
    font-size: 12px;
    letter-spacing: 2px;
    color: #8e9aaf;
    text-align: center;
  }

  :global(.ant-btn) {
    margin-top: 2%;
    background-color: #fff;
    color: #a262ad;
    border: 1px solid #d3b7d8;
    padding: 6px 10px;
    border-radius: 5px;
    letter-spacing: 1px;
    outline: none;

    &:not([disabled]):hover {
      background-color: #d3b7d8 !important;
      color: #fff !important;
      transition: background-color 0.5s ease;
      border: 1px solid #f6f6f6 !important;
    }
    &:not([disabled]):active {
      background-color: #a262ad !important;
    }
  }
}
